import {post,get} from '@/request.js'

//登录
export const login = (params) => post('/adopt/login',params)

//注册
export const register = (params) => post('/adopt/register',params)

//获取宠物信息
export const getpetInfo = (params) => get('/adopt/petInfo',params)

//获取机构信息
export const getAgencyInfo = (params) => get('/adopt/agencyInfo',params)



//获取评论信息
export const getComment = (params) => get('/adopt/commentInfo',params)

//获取所有账户信息
export const getuserInfo = (params) => get('/adopt/userInfo',params)

//选择宠物品种
export const gettypeInfo = (params) => get('/adopt/typeInfo',params)

//添加宠物
export const addPet = (params) => post('/adopt/pet/add',params)

//编辑宠物
export const updatePet = (params) => post('/adopt/pet/update',params)

//删除宠物
export const delPet = (params) => get('/adopt/pet/delete',params)

//过滤
export const getfilterList = (params) => get('/adopt/filterList',params)

//点赞功能
export const giveLike = (params) => post('/adopt/like',params)

//点赞
export const updateLike = (params) => post('/adopt/like/updatelike',params)

//一个页面点赞
export const upSoloLike = (params) => post('/adopt/like/sololike',params)

//修改头像
export const uploadImg = (params) => post('/adopt/image',params)

//获取头像
export const getImg = (params) => get('/adopt/upload',params)

//添加评论
export const  updateComment = (params) => post('/adopt/createNewComment',params)

//下单
export const createOrder = (params) => post ('/adopt/createOrder',params)

//查看订单详情
export const getOrderDetail = (params) => get('/adopt/getOrderInfo',params)

//上传头像
export const updateProfile = (params) => post('/adopt/updateProfile',params)


export const getMechanismList = (params) => post('/adopt/getMechanismList',params)
export const addMechanism = (params) => post('/adopt/addMechanism',params)
export const updateMechanism = (params) => post('/adopt/updateMechanism',params)
export const deleteMechanism = (params) => post('/adopt/deleteMechanism',params)
export const orderInfo = (params) => post('/adopt/orderInfo',params)
export const updateOrder = (params) => post('/adopt/updateOrder',params)
export const commentInfo = (params) => get('/adopt/commentInfo',params)
export const commentDelete = (params) => get('/adopt/commentDelete',params)